<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./js/calendar.js"></script>
<script type="text/javascript" language="javascript">
<!--
	function checkForm(){
		var customerName = document.getElementById("customerName");
		var address = document.getElementById("address");
		var phone = document.getElementById("phone");
		
		if(customerName.value == ""){
			alert("<fmt:message key='customer.lable.customerName'/><fmt:message key='common.message.empty'/>");
			return false;
		}
		if(address.value == ""){
			alert("<fmt:message key='customer.lable.address'/><fmt:message key='common.message.empty'/>");
			return false;
		}
		if(phone.value == ""){
			alert("<fmt:message key='customer.lable.phone'/><fmt:message key='common.message.empty'/>");
			return false;
		}
		return true;
	}

	//start 定义一个javascript对象，用于存储要级联的那些数据
	function subsection(id,parentId,name){
		this.id = id;			//细分id，下拉框的value
		this.parentId = parentId;	//细分对应的行业id
		this.name = name;			//细分名称，下拉框的text
	}
	var subsections = new Array();
	<c:forEach var="subsection" items="${ranges['127']}">
		subsections.push(new subsection('${subsection.id}','${subsection.parentId}','${subsection.rangeValue}'));
	</c:forEach>
	function industryChangeEdit(obj){
		var parentId = obj.value;
		var subsectionSelect = document.getElementById("subIndustryId");	//显示细分下拉列表
		
		subsectionSelect.options.length = 1;
		for(var i = 0; i < subsections.length; i++){
			var subsectionObj = subsections[i];
			if(subsectionObj.parentId == parentId){
				var tempOption = document.createElement("option");
				tempOption.text = subsectionObj.name;
				tempOption.value = subsectionObj.id;
				subsectionSelect.options[subsectionSelect.options.length] = tempOption;
			}
		}
		if(obj.selectedIndex == 0){
			subsectionSelect.selectedIndex = 0;
		}
	}//end 行业、细分级联
	
	//start 定义一个javascript对象，用于存储要级联的那些数据
	function subProvince(id,parentId,name){
		this.id = id;				//省级id，下拉框的value
		this.parentId = parentId;	//省级对应的省份id
		this.name = name;			//省级名称，下拉框的text
	}
	var subProvinces = new Array();
	<c:forEach var="subPrivince" items="${ranges['125']}">
		subProvinces.push(new subCity('${subPrivince.id}','${subPrivince.parentId}','${subPrivince.CName}'));
	</c:forEach>
	function countryChangesEdit(obj){
		var parentId = obj.value;
		var subProvinceSelect = document.getElementById("provinceId");	//显示市级下拉列表
		
		subProvinceSelect.options.length = 1;
		for(var i = 0; i < subProvinces.length; i++){
			var subProvinceObj = subProvinces[i];
			if(subProvinceObj.parentId == parentId){
				var tempOption = document.createElement("option");
				tempOption.text = subProvinceObj.name;
				tempOption.value = subProvinceObj.id;
				subProvinceSelect.options[subProvinceSelect.options.length] = tempOption;
			}
		}
		if(obj.selectedIndex == 0){
			subProvinceSelect.selectedIndex = 0;
		}
	}
	
	function subCity(id,parentId,name){
		this.id = id;				//市级id，下拉框的value
		this.parentId = parentId;	//市级对应的省份id
		this.name = name;			//市级名称，下拉框的text
	}
	var subCitys = new Array();
	<c:forEach var="subCity" items="${ranges['126']}">
		subCitys.push(new subCity('${subCity.id}','${subCity.parentId}','${subCity.CName}'));
	</c:forEach>
	function provinceChangesEdit(obj){
		var parentId = obj.value;
		var subCitySelect = document.getElementById("cityId");	//显示市级下拉列表
		
		subCitySelect.options.length = 1;
		for(var i = 0; i < subCitys.length; i++){
			var subCityObj = subCitys[i];
			if(subCityObj.parentId == parentId){
				var tempOption = document.createElement("option");
				tempOption.text = subCityObj.name;
				tempOption.value = subCityObj.id;
				subCitySelect.options[subCitySelect.options.length] = tempOption;
			}
		}
		if(obj.selectedIndex == 0){
			subCitySelect.selectedIndex = 0;
		}
	}//end 国家、省、市级联
	
	function back(){
		window.location.href = "./customerManage.do";
		window.location.target = "main";
	}
	
	/**function back(){
		var uri = "./customerManage.do";
		var sign = "<c:out value='${sign}'/>";
		if(sign == "11"){
			uri = "./customerManage.do";
		}else if(sign == "12"){
			uri = "./customerManage.do?action=deptCustomer";
		}else if(sign == "21"){
			uri = "./contractCustomer.do";
		}else if(sign == "22"){
			uri = "./contractCustomer.do?action=deptCustomer";
		}else if(sign == "31"){
			uri = "./exceptionCustomer.do";
		}else if(sign == "41"){
			uri = "./assignCustomer.do";
		}else if(sign == "51"){
			uri = "./repeatCustomer.do";
		}else if(sign == "61"){
			uri = "./customerCollect.do";//返回客户收集页面
		}
		window.location.href = uri;
		window.location.target = "main";
	}*/
	
	function showHidden(id){
		var obj = document.getElementById(id);
		if(obj.style.display == "none"){
			document.getElementById(id).style.display = "block";
			document.getElementById("img"+id).src = "./images/nolines_minus.gif";
		}else{
			document.getElementById(id).style.display = "none";
			document.getElementById("img"+id).src = "./images/nolines_plus.gif";
		}
	}
	
	function save(){
		if(checkForm()){
			document.addCustomerForm.action = "./customerManage.do?action=addCustomer";
			document.addCustomerForm.target = "main";
			document.addCustomerForm.submit();
		}
	}
	
	function initPage(){
		if("<c:out value='${result}'/>" == 1){
			alert("<fmt:message key='common.message.addSuccess'/>");
		}
		
		if("<c:out value='${repeat}'/>" == 1){
			alert("<fmt:message key='common.message.addFail'/><fmt:message key='customer.lable.customer'/><fmt:message key='common.message.exist'/>");
		}
		
		if("<c:out value='${notAdd}'/>" == 1){
			alert("<fmt:message key='common.message.addFail'/><fmt:message key='customer.message.overstep'/>");
		}
	
		if(document.getElementById('industryId') != null){
			if(document.getElementById('industryId').selectedIndex == 0){
				document.getElementById("subIndustryId").options.length = 1;
			}
		}
		if(document.getElementById('countryId') != null){
			if(document.getElementById('countryId').selectedIndex == 0){
				document.getElementById("provinceId").options.length = 1;
			}
		}
		if(document.getElementById('provinceId') != null){
			if(document.getElementById('provinceId').selectedIndex == 0){
				document.getElementById("cityId").options.length = 1;
			}
		}
		
		
	}
-->
</script>
</head>
<body style="" onload="initPage()">
<form name="addCustomerForm" action="" method="post">
	<table class="table_frame">
		<tr>
			<td>
				<table class="table_title1">
					<tr>
						<td class="title_lab">新增客户</td>
					</tr>
					<tr>
						<td align="center" valign="bottom">
							<button class="btn_submit" onclick="save()" hidefocus="true">提交</button>&nbsp;&nbsp;
							<button class="btn_back" onclick="back()" hidefocus="true">取消并返回</button>
						</td>
					</tr>
					<tr><td height="2"></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top">
				<table class="table_title2">
					<tr id="tBaseInfo">
						<td>
							<table class="table_add">
								<tr><td colspan="2" class="title_top"><fmt:message key='customer.lable.baseInfo'/></td></tr>
								<tr>
									<td class="title"><!-- 客户编号 -->
										<c:choose>
											<c:when test="${language == 2}">${records['11'].currentRecordEn}：</c:when>
											<c:otherwise>${records['11'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										${customerCode}<input id="customerCode" name="customerCode" type="hidden" value="${customerCode}"/>
										<input id="salePersonId" name="salePersonId" type="hidden" value="${userId}" />
										<input id="customerSourceId" name="customerSourceId" type="hidden" value="1"/><!-- 表示自拓 -->
									</td>
								</tr>
								<tr>
									<td class="title"><!-- 客户名称 -->
										<c:choose>
											<c:when test="${language == 2}">${records['12'].currentRecordEn}：</c:when>
											<c:otherwise>${records['12'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="90%"><input id="customerName" name="customerName" class="input_long" type="text" value="${customer.customerName}" style="width:90%"/>*</td>
								</tr>
								<tr>
									<td class="title"><!-- 地址 -->
										<c:choose>
											<c:when test="${language == 2}">${records['13'].currentRecordEn}：</c:when>
											<c:otherwise>${records['13'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="90%"><input id="address" name="address" class="input_long" type="text" value="${customer.address}" style="width:90%"/>*</td>
								</tr>
								<tr>
									<td class="title"><!-- 总机 -->
										<c:choose>
											<c:when test="${language == 2}">${records['14'].currentRecordEn}：</c:when>
											<c:otherwise>${records['14'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="phone" name="phone" class="input_long" type="text" value="${customer.phone}"/>*</td>
								</tr>
								<tr>
									<td class="title"><!-- 传真 -->
										<c:choose>
											<c:when test="${language == 2}">${records['15'].currentRecordEn}：</c:when>
											<c:otherwise>${records['15'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="fax" name="fax" class="input_long" type="text" value="${customer.fax}"/></td>
								</tr>
								<!-- 
								<tr>
									<td width="">客户来源
										<c:choose>
											<c:when test="${language == 2}">${records['16'].currentRecordEn}：</c:when>
											<c:otherwise>${records['16'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customerSourceId" name="customerSourceId">
											<option>--------请选择--------</option>
											<option>公司指派</option>
										</select>
									</td>
								</tr>
								 -->
								 <!-- 
								<tr>
									<td width="">预测签约
										<c:choose>
											<c:when test="${language == 2}">${records['17'].currentRecordEn}：</c:when>
											<c:otherwise>${records['17'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<input id="predictContract" name="predictContract" class="input_long" type="text" 
											onclick="calendar(this,'yyyy-MM-dd');" readonly="readonly" 
											value="<fmt:formatDate value='${customer.predictContract}' pattern='yyyy-MM-dd'/>"/>
									</td>
								</tr>
								 -->
								 <!-- 预测金额
								<tr>
									<td width="">
										<c:choose>
											<c:when test="${language == 2}">${records['18'].currentRecordEn}：</c:when>
											<c:otherwise>${records['18'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="predictCost" name="predictCost" class="input_long" type="text" value="${customer.predictCost}"/><fmt:message key='common.lable.yuan'/></td>
								</tr>
								 -->
								 <!-- 
								<tr>
									<td width="">需求描述
										<c:choose>
											<c:when test="${language == 2}">${records['19'].currentRecordEn}：</c:when>
											<c:otherwise>${records['19'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><textarea id="requireDesc" name="requireDesc" class="textarea_style" wrap="hard">${customer.requireDesc}</textarea></td>
								</tr>
								 -->
							</table>
						</td>
					</tr>
				</table>		
				
				
				<table class="table_title2">
					<tr>
						<td class="title_info" colspan="2" onclick="showHidden('2')">
							<img id="img2" src="./images/nolines_minus.gif">
							<fmt:message key='customer.lable.moreInfo'/>
						</td>
					</tr>
					<tr id="2">
						<td>
							<table class="table_add" style="display: block;">
								<c:if test="${records['110'].status == 1}">
								<tr>
									<td class="title"><!-- 行业 -->
										<c:choose>
											<c:when test="${language == 2}">${records['110'].currentRecordEn}：</c:when>
											<c:otherwise>${records['110'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="industryId" name="industryId" onchange="industryChangeEdit(this)">
											<option value="0" <c:if test='${customer.industryId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['110']}">
											<option value="${range.id}" <c:if test='${customer.industryId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['127'].status == 1}">
								<tr>
									<td class="title"><!-- 行业细分 -->
										<c:choose>
											<c:when test="${language == 2}">${records['127'].currentRecordEn}：</c:when>
											<c:otherwise>${records['127'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="subIndustryId" name="subIndustryId">
											<option value="0" <c:if test='${customer.subIndustryId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['127']}">
											<option value="${range.id}" <c:if test='${customer.subIndustryId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['111'].status == 1}">
								<tr>
									<td class="title"><!-- 区域 -->
										<c:choose>
											<c:when test="${language == 2}">${records['111'].currentRecordEn}：</c:when>
											<c:otherwise>${records['111'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="areaId" name="areaId">
											<option value="0" <c:if test='${customer.areaId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['111']}">
											<option value="${range.id}" <c:if test='${customer.areaId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['112'].status == 1}">
								<tr>
									<td class="title"><!-- 产值 -->
										<c:choose>
											<c:when test="${language == 2}">${records['112'].currentRecordEn}：</c:when>
											<c:otherwise>${records['112'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="outputValueId" name="outputValueId">
											<option value="0" <c:if test='${customer.outputValueId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['112']}">
											<option value="${range.id}" <c:if test='${customer.outputValueId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['113'].status == 1}">
								<tr>
									<td class="title"><!-- 企业类型 -->
										<c:choose>
											<c:when test="${language == 2}">${records['113'].currentRecordEn}：</c:when>
											<c:otherwise>${records['113'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="companyTypeId" name="companyTypeId">
											<option value="0" <c:if test='${customer.companyTypeId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['113']}">
											<option value="${range.id}" <c:if test='${customer.companyTypeId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['114'].status == 1}">
								<tr>
									<td class="title"><!-- 公司网址 -->
										<c:choose>
											<c:when test="${language == 2}">${records['114'].currentRecordEn}：</c:when>
											<c:otherwise>${records['114'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="http" name="http" class="input_long" type="text" value="${customer.http}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['115'].status == 1}">
								<tr>
									<td class="title"><!-- 利润 -->
										<c:choose>
											<c:when test="${language == 2}">${records['115'].currentRecordEn}：</c:when>
											<c:otherwise>${records['115'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="profitsId" name="profitsId">
											<option value="0" <c:if test='${customer.profitsId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['115']}">
											<option value="${range.id}" <c:if test='${customer.profitsId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['116'].status == 1}">
								<tr>
									<td class="title"><!-- 员工数量 -->
										<c:choose>
											<c:when test="${language == 2}">${records['116'].currentRecordEn}：</c:when>
											<c:otherwise>${records['116'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="employeeNumId" name="employeeNumId">
											<option value="0" <c:if test='${customer.employeeNumId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['116']}">
											<option value="${range.id}" <c:if test='${customer.employeeNumId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['117'].status == 1}">
								<tr>
									<td class="title"><!-- 客户简称 -->
										<c:choose>
											<c:when test="${language == 2}">${records['117'].currentRecordEn}：</c:when>
											<c:otherwise>${records['117'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="customerSimple" name="customerSimple" class="input_long" type="text" value="${customer.customerSimple}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['118'].status == 1}">
								<tr>
									<td class="title"><!-- 税号 -->
										<c:choose>
											<c:when test="${language == 2}">${records['118'].currentRecordEn}：</c:when>
											<c:otherwise>${records['118'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="90%"><input id="taxCode" name="taxCode" class="input_long" type="text" value="${customer.taxCode}" style="width:90%"/></td>
								</tr>
								</c:if>
								<c:if test="${records['119'].status == 1}">
								<tr>
									<td class="title"><!-- 开户行 -->
										<c:choose>
											<c:when test="${language == 2}">${records['119'].currentRecordEn}：</c:when>
											<c:otherwise>${records['119'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="bankDepositId" name="bankDepositId">
											<option value="0" <c:if test='${customer.bankDepositId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['119']}">
											<option value="${range.id}" <c:if test='${customer.bankDepositId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['120'].status == 1}">
								<tr>
									<td class="title"><!-- 邮编 -->
										<c:choose>
											<c:when test="${language == 2}">${records['120'].currentRecordEn}：</c:when>
											<c:otherwise>${records['120'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="zip" name="zip" class="input_long" type="text" value="${customer.zip}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['121'].status == 1}">
								<tr>
									<td class="title"><!-- 是否上市 -->
										<c:choose>
											<c:when test="${language == 2}">${records['121'].currentRecordEn}：</c:when>
											<c:otherwise>${records['121'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="isMarketId" name="isMarketId">
											<option value="0" <c:if test='${customer.isMarketId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['121']}">
											<option value="${range.id}" <c:if test='${customer.isMarketId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['122'].status == 1}">
								<tr>
									<td class="title"><!-- 独立采购权 -->
										<c:choose>
											<c:when test="${language == 2}">${records['122'].currentRecordEn}：</c:when>
											<c:otherwise>${records['122'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="isPurchaseId" name="isPurchaseId">
											<option value="0" <c:if test='${customer.isPurchaseId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['122']}">
											<option value="${range.id}" <c:if test='${customer.isPurchaseId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['123'].status == 1}">
								<tr>
									<td class="title"><!-- 客户类型 -->
										<c:choose>
											<c:when test="${language == 2}">${records['123'].currentRecordEn}：</c:when>
											<c:otherwise>${records['123'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customerTypeId" name="customerTypeId">
											<option value="0" <c:if test='${customer.customerTypeId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['123']}">
											<option value="${range.id}" <c:if test='${customer.customerTypeId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['124'].status == 1}">
								<tr>
									<td class="title"><!-- 国家 -->
										<c:choose>
											<c:when test="${language == 2}">${records['124'].currentRecordEn}：</c:when>
											<c:otherwise>${records['124'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="countryId" name="countryId" onchange="countryChangesEdit(this)">
											<option value="0" <c:if test='${customer.countryId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['124']}">
											<option value="${range.id}" <c:if test='${customer.countryId == range.id}'>selected</c:if> >
												${range.CName}
											</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['125'].status == 1}">
								<tr>
									<td class="title"><!-- 省级 -->
										<c:choose>
											<c:when test="${language == 2}">${records['125'].currentRecordEn}：</c:when>
											<c:otherwise>${records['125'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="provinceId" name="provinceId" onclick="provinceChangesEdit(this)">
											<option value="0" <c:if test='${customer.provinceId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['125']}">
											<option value="${range.id}" <c:if test='${customer.provinceId == range.id}'>selected</c:if> >
												${range.CName}
											</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['126'].status == 1}">
								<tr>
									<td class="title"><!-- 市级 -->
										<c:choose>
											<c:when test="${language == 2}">${records['126'].currentRecordEn}：</c:when>
											<c:otherwise>${records['126'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="cityId" name="cityId">
											<option value="0" <c:if test='${customer.cityId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['126']}">
											<option value="${range.id}" <c:if test='${customer.cityId == range.id}'>selected</c:if> >
												${range.CName}
											</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['128'].status == 1}">
								<tr>
									<td class="title"><!-- 客户集群 -->
										<c:choose>
											<c:when test="${language == 2}">${records['128'].currentRecordEn}：</c:when>
											<c:otherwise>${records['128'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="clusterId" name="clusterId">
											<option value="0" <c:if test='${customer.clusterId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['128']}">
											<option value="${range.id}" <c:if test='${customer.clusterId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['129'].status == 1}">
								<tr>
									<td class="title"><!-- 客户规模 -->
										<c:choose>
											<c:when test="${language == 2}">${records['129'].currentRecordEn}：</c:when>
											<c:otherwise>${records['129'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="scaleId" name="scaleId">
											<option value="0" <c:if test='${customer.scaleId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['129']}">
											<option value="${range.id}" <c:if test='${customer.scaleId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['130'].status == 1}">
								<tr>
									<td class="title"><!-- 母公司 -->
										<c:choose>
											<c:when test="${language == 2}">${records['130'].currentRecordEn}：</c:when>
											<c:otherwise>${records['130'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="parentCompany" name="parentCompany" class="input_long" type="text" value="${customer.parentCompany}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['131'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义母级 -->
										<c:choose>
											<c:when test="${language == 2}">${records['131'].currentRecordEn}：</c:when>
											<c:otherwise>${records['131'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customParentId" name="customParentId">
											<option value="0" <c:if test='${customer.customParentId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['131']}">
											<option value="${range.id}" <c:if test='${customer.customParentId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['132'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义子级 -->
										<c:choose>
											<c:when test="${language == 2}">${records['132'].currentRecordEn}：</c:when>
											<c:otherwise>${records['132'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customSublevelId" name="customSublevelId">
											<option value="0" <c:if test='${customer.customSublevelId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['132']}">
											<option value="${range.id}" <c:if test='${customer.customSublevelId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['133'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义分类1 -->
										<c:choose>
											<c:when test="${language == 2}">${records['133'].currentRecordEn}：</c:when>
											<c:otherwise>${records['133'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customTypeId1" name="customTypeId1">
											<option value="0" <c:if test='${customer.customTypeId1 == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['133']}">
											<option value="${range.id}" <c:if test='${customer.customTypeId1 == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['134'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义分类2 -->
										<c:choose>
											<c:when test="${language == 2}">${records['134'].currentRecordEn}：</c:when>
											<c:otherwise>${records['134'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customTypeId2" name="customTypeId2">
											<option value="0" <c:if test='${customer.customTypeId2 == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['134']}">
											<option value="${range.id}" <c:if test='${customer.customTypeId2 == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['135'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义分类3 -->
										<c:choose>
											<c:when test="${language == 2}">${records['135'].currentRecordEn}：</c:when>
											<c:otherwise>${records['135'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customTypeId3" name="customTypeId3">
											<option value="0" <c:if test='${customer.customTypeId3 == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['135']}">
											<option value="${range.id}" <c:if test='${customer.customTypeId3 == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['136'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义分类4 -->
										<c:choose>
											<c:when test="${language == 2}">${records['136'].currentRecordEn}：</c:when>
											<c:otherwise>${records['136'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="customType4" name="customType4" class="input_long" type="text" value="${customer.customType4}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['137'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义分类5 -->
										<c:choose>
											<c:when test="${language == 2}">${records['137'].currentRecordEn}：</c:when>
											<c:otherwise>${records['137'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="customType5" name="customType5" class="input_long" type="text" value="${customer.customType5}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['138'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义分类6 -->
										<c:choose>
											<c:when test="${language == 2}">${records['138'].currentRecordEn}：</c:when>
											<c:otherwise>${records['138'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="customType6" name="customType6" class="input_long" type="text" value="${customer.customType6}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['139'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义项1 -->
										<c:choose>
											<c:when test="${language == 2}">${records['139'].currentRecordEn}：</c:when>
											<c:otherwise>${records['139'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="90%"><input id="customItem1" name="customItem1" class="input_long" type="text" value="${customer.customItem1}" style="width:90%"/></td>
								</tr>
								</c:if>
								<c:if test="${records['140'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义项2 -->
										<c:choose>
											<c:when test="${language == 2}">${records['140'].currentRecordEn}：</c:when>
											<c:otherwise>${records['140'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="90%"><input id="customItem2" name="customItem2" class="input_long" type="text" value="${customer.customItem2}" style="width:90%"/></td>
								</tr>
								</c:if>
								<c:if test="${records['141'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义项3 -->
										<c:choose>
											<c:when test="${language == 2}">${records['141'].currentRecordEn}：</c:when>
											<c:otherwise>${records['141'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="90%">
										<textarea name="customItem3" name="customItem3" cols="100" rows="6">${customer.customItem3}</textarea>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['142'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义项4 -->
										<c:choose>
											<c:when test="${language == 2}">${records['142'].currentRecordEn}：</c:when>
											<c:otherwise>${records['142'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customItemId4" name="customItemId4">
											<option value="0" <c:if test='${customer.customItemId4 == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['142']}">
											<option value="${range.id}" <c:if test='${customer.customItemId4 == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['143'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义项5 -->
										<c:choose>
											<c:when test="${language == 2}">${records['143'].currentRecordEn}：</c:when>
											<c:otherwise>${records['143'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customItemId5" name="customItemId5">
											<option value="0" <c:if test='${customer.customItemId5 == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['143']}">
											<option value="${range.id}" <c:if test='${customer.customItemId5 == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['144'].status == 1}">
								<tr>
									<td class="title"><!-- 自定义项6 -->
										<c:choose>
											<c:when test="${language == 2}">${records['144'].currentRecordEn}：</c:when>
											<c:otherwise>${records['144'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customItemId6" name="customItemId6">
											<option value="0" <c:if test='${customer.customItemId6 == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['144']}">
											<option value="${range.id}" <c:if test='${customer.customItemId6 == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<input id="sign" name="sign" type="hidden" value="${sign}"/>
</form>		
</body>
</html>